From c06887c9f0dce4e6324b4ce2d7ff004f8f8f649f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 20 Jan 2012 20:05:43 -0500 Subject: [PATCH] Bloatpad: Set the application name This will be picked up for the app menu label in fallback mode in the near future. --- examples/bloatpad.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/bloatpad.c b/examples/bloatpad.c index 67c4efdeaa..8ac2d02a16 100644 --- a/examples/bloatpad.c +++ b/examples/bloatpad.c @@ -337,6 +337,8 @@ bloat_pad_new (void) g_type_init (); + g_set_application_name ("Bloatpad"); + bloat_pad = g_object_new (bloat_pad_get_type (), "application-id", "org.gtk.Test.bloatpad", "flags", G_APPLICATION_HANDLES_OPEN, @@ -356,9 +358,12 @@ main (int argc, char **argv) int status; bloat_pad = bloat_pad_new (); + gtk_application_add_accelerator (GTK_APPLICATION (bloat_pad), "F11", "win.fullscreen", NULL); + status = g_application_run (G_APPLICATION (bloat_pad), argc, argv); + g_object_unref (bloat_pad); return status; -- 2.30.2